package com.example.hcd.datamanage;

import java.text.SimpleDateFormat;
import java.util.Date;

public class LeaveData {
	//请假原因
	private String reason;
	//请假初始时间
	private String startTime;
	//请假结束时间
	private String endTime;
	//请假leixing
	private String leaveType;
	//用户部门
	private String applicant;
	//key
	private String key;
	//流程狀態
	private String processStatus;
	//流程狀態值
	private String processStatusValue;
	//流程ID
	private String processInstanceId;
	//申请人ID
	private String userid;
	//申请時間
	private String createTime;
	//業務ID
	private String ID;
	//任務ID
	private String taskId;
	//status
	private String status;
	//leavestatus
	private String leavestatus;
	//用户ID
	private String userId;
	//用户名
	private String name;
	
	public String getReason() {
		return reason;
	}
	public void setReason(String Reason) {
		this.reason = Reason;
	}
	public String getStartTime() {
		SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		long time = Long.parseLong(startTime);
		return mFormat.format(new Date(time));
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		long time = Long.parseLong(endTime);
		return mFormat.format(new Date(time));
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getProcessStatus() {
		return processStatus;
	}
	public void setProcessStatus(String processStatus) {
		this.processStatus = processStatus;
	}
	public String getProcessStatusValue() {
		return processStatusValue;
	}
	public void setProcessStatusValue(String processStatusValue) {
		this.processStatusValue = processStatusValue;
	}
	public String getProcessInstanceId() {
		return processInstanceId;
	}
	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public String getApplicant() {
		return applicant;
	}
	public void setApplicant(String applicant) {
		this.applicant = applicant;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getLeavestatus() {
		return leavestatus;
	}
	public void setLeavestatus(String leavestatus) {
		this.leavestatus = leavestatus;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getCreateTime() {
	SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		long time = Long.parseLong(createTime);
		return mFormat.format(new Date(time));
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLeaveType() {
		return leaveType;
	}
	public void setLeaveType(String leaveType) {
		this.leaveType = leaveType;
	}
}
